#include"tree.h"

int main()
{
	/*Tree node;
	TreeInit(&node);*/
	Tree* A = (Tree*)malloc(sizeof(Tree));
	A->data = 'A';
	A->left = NULL;
	A->right = NULL;

	Tree* B = (Tree*)malloc(sizeof(Tree));
	B->data = 'B';
	B->left = NULL;
	B->right = NULL;
	Tree* C = (Tree*)malloc(sizeof(Tree));
	C->data = 'C';
	C->left = NULL;
	C->right = NULL;
	Tree* D = (Tree*)malloc(sizeof(Tree));
	D->data = 'D';
	D->left = NULL;
	D->right = NULL;
	Tree* E = (Tree*)malloc(sizeof(Tree));
	E->data = 'E';
	E->left = NULL;
	E->right = NULL;
	Tree* F = (Tree*)malloc(sizeof(Tree));
	F->data = 'F';
	F->left = NULL;
	F->right = NULL;

	A->left = B;
	A->right = C;
	B->left = D;
	B->right = E;
	C->left = F;

	prevorder(A);
	printf("\n");
	inorder(A);
	printf("\n");
	postorder(A);
	printf("\n");

	printf("%d", TreeSize(A));
	printf("\n");
	printf("%d", TreeLeafSize(A));
	return 0;
}


